﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Funcionarios.aspx.cs" Inherits=" RzCorportativo.Views.Consulta.Funcionarios" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Funcionários
    </h1>
    <hr />
    <div class="controls controls-row">
        <asp:TextBox runat="server" ID="CPF" mask="cpf" placeholder="CPF" />
        <asp:TextBox runat="server" ID="CRM" placeholder="CRM" />
    </div>
    <div class="controls controls-row">
        <asp:TextBox runat="server" ID="Nome" placeholder="Nome" />
        <asp:DropDownList runat="server" ID="Especialidade" Width="265">
        </asp:DropDownList>
    </div>
    <div style="min-width: 800px; margin-top: 30px" class="grid">
        <%--<table border="0" cellpadding="0" cellspacing="" style="width: 100%">
            <tr>
                <td class="field">
                    CPF:
                </td>
                <td class="field2">
                </td>
                <td class="field">
                    CRM:
                </td>
                <td class="field2">
                </td>
            </tr>
            <tr>
                <td class="field">
                    Nome:
                </td>
                <td class="field2">
                </td>
                <td class="field">
                    Especialidade:
                </td>
                <td class="field2">
                </td>
            </tr>
        </table>--%>
        <input type="button" name="novo" value="novo" class="btn btn-inverse" onclick="window.location='<%= EFramework.Web.UrlBase.UrlPadrao%>Views/Cadastros/Funcionarios.aspx'" />
        <asp:Button Text="buscar" ID="buscar" runat="server" OnClick="buscar_Click" CssClass="btn" />
        <br />
        <br />
        <asp:GridView runat="server" ID="ListaMedicos" AutoGenerateColumns="false" OnRowDeleting="ListaMedicos_RowDeleting"
            OnSelectedIndexChanging="ListaMedicos_SelectedIndexChanging" AlternatingRowStyle-CssClass="gridrow_alternate"
            RowStyle-CssClass="gridrow" CssClass="table-hover" PageSize="1" AllowPaging="true"
            OnPageIndexChanging="ListaMedicos_PageIndexChanging">
            <EmptyDataTemplate>
                <strong>Não foram encontrados médicos para os filtros selecionados</strong>
            </EmptyDataTemplate>
            <Columns>
                <asp:TemplateField Visible="false">
                    <ItemTemplate>
                        <asp:TextBox runat="server" ID="MedicoId" Text='<%# ((RzCorportativo.Lib.Medico)Container.DataItem).MedicoId%>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CRM" HeaderText="CRM" />
                <asp:TemplateField HeaderText="Nome">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="Pessoa" Text='<%# this.GetPessoa(Container.DataItem).Nome%>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <%--<asp:BoundField DataField="Pessoa.Nome" HeaderText="Nome" />--%>
                <asp:CommandField ShowSelectButton="true" SelectText="Selecionar" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
